﻿function SampleCode() {
    //alert("This is Sample Code");
}


// 创建XMLHttpRequest对象
function createRequest() {
    var xmlhttp;
    try {
        xmlhttp = new XMLHttpRequest();
    }
    catch (tryMicrosotf) {
        try {
            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (otherMicrosotf) {
            try {
                xmlhttp = new ActiveXObject("Microsotf.XMLHTTP");
            }
            catch (failed) {
                xmlhttp = false;
            }
        }
    }
    return xmlhttp;
}